import { defineConfig,loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig(({command, mode}) => {
  return {
    define: {
      'process.env': loadEnv(mode,process.cwd(),'')
    },
    plugins: [vue()],
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src')
      }
    },
    server: {
      proxy: {
        '/kpmg-demo': 'http://localhost:7001'
      }
    }
  }
});
